Conversation
…util, hooks) - app/slices/ split into shared/ (authSlice), scanner/ (scannerSlice, callsSlice, shareSlice), admin/ (adminSlice, activitySlice) - components/admin/AdminLayout.tsx inlined into pages/Admin.tsx; default export renamed to Admin; test file moved to pages/Admin.test.tsx - components/admin/NavigationGuardContext.tsx relocated to hooks/admin/useNavigationGuard.tsx and added to the hooks/admin barrel - services/downloadFilename.ts moved to services/util/downloadFilename.ts All 188 tests pass; tsc --noEmit clean. No runtime behaviour change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up cleanup after Phases 4–6 of the directory restructure plan. Four small, mechanical moves bundled into one PR. No runtime behaviour change.
Moves
app/slices/{authSlice,scannerSlice,callsSlice,shareSlice,adminSlice,activitySlice}.ts(flat)app/slices/shared/authSlice.ts,app/slices/scanner/{scannerSlice,callsSlice,shareSlice}.ts,app/slices/admin/{adminSlice,activitySlice}.tshooks/andservices/components/admin/AdminLayout.tsx+ 5-line shim atpages/Admin.tsxpages/Admin.tsx(260 LOC, default export renamedAdminLayout→Admin); test moves topages/Admin.test.tsxpages/, drop the trivial shimservices/downloadFilename.tsservices/util/downloadFilename.tsws/+audio/subfolder pattern; future pure helpers go herecomponents/admin/NavigationGuardContext.tsxhooks/admin/useNavigationGuard.tsx(added to hooks/admin barrel)All call sites updated via
sed; no@/components/admin/NavigationGuardContext,@/services/downloadFilename,@/components/admin/AdminLayout, or flat@/app/slices/*imports remain.Verification
pnpm exec tsc --noEmit— cleanpnpm test -- --run— 188/188 pass (same baseline as Phases 4/5/6)CHANGELOG
One bullet appended under
[Unreleased]### Changed describing all four moves.